Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: cli uses tsx instead of ts-node #365

Merged
merged 2 commits into from
Sep 11, 2023
Merged

feat: cli uses tsx instead of ts-node #365

merged 2 commits into from
Sep 11, 2023

Conversation

agazso
Copy link
Contributor

@agazso agazso commented Sep 9, 2023

The CLI was broken, because it imported files that imported paths that was defined in the tsconfig.json and ts-node did not support that. This PR replaces ts-node with tsx that supports tsconfig paths.

Also there are new commands for testing chat related functionality:

  • pnpm cli waku profile <address>: prints the profile belonging to an address
  • pnpm cli waku group-chat <address>: prints the group chats
  • pnpm cli waku chats <address>: prints the chats object
  • pnpm cli waku private-message <address>: prints the private messages
  • pnpm cli waku objects <address>: prints the object store
  • pnpm cli waku send <from> <to> <message> sends a private message from a user (or group) to another one
  • pnpm cli waku invite <from> <to> <chat-id> invite a user to a group chat

@vercel
Copy link

vercel bot commented Sep 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
waku-objects-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 9, 2023 11:43am

@vojtechsimetka
Copy link
Contributor

Also there are new commands for testing chat related functionality:

  • pnpm cli waku profile <address>: prints the profile belonging to an address
  • pnpm cli waku group-chat <address>: prints the group chats
  • pnpm cli waku chats <address>: prints the chats object
  • pnpm cli waku private-message <address>: prints the private messages
  • pnpm cli waku objects <address>: prints the object store
  • pnpm cli waku send <from> <to> <message> sends a private message from a user (or group) to another one
  • pnpm cli waku invite <from> <to> <chat-id> invite a user to a group chat

Could you please add these to readme? Alongside with any others that may exist already (can be in a separate PR)

@agazso agazso merged commit 4cc2512 into main Sep 11, 2023
@agazso agazso deleted the feat/cli-use-tsx branch September 11, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants